<template>
    <view class="n_empty">
        <image :src="src"/>
        {{ text }}
    </view>
</template>

<script>
export default {
    name: 'empty',
    props: {
        src: {
            type: String,
            default: 'https://smosun-minapp.oss-cn-shanghai.aliyuncs.com/weapp/img/community/comments_null.png'
        },
        text: {
            type: String,
            default: '暂无数据'
        }
    }
};
</script>

<style lang="scss" scoped>
.n_empty {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-family: PingFangSC-Semibold, PingFang SC;
    font-weight: 600;
    color: #272A37;
    background: #FFFFFF;
    image {
        width: 155px;
        height: 154px;
        border-radius: 4px;
        margin-bottom: 15px;
    }
}
</style>
